package md.mru.transfer.optimized.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author sergiu.marin
 * @since 14.04.2014.
 */
@Entity
@Table(name = "tree_node_models", schema = "c##mru_optimized")
public class TreeNodeModel implements Serializable {

    private static final long serialVersionUID = 7561066069007401229L;

    @Id
    @Column(name = "id", unique = true, nullable = false, precision = 10, scale = 0)
    private long id;

    @Column(name = "pid")
    private Long parentId;

    private String name;

    private String description;

    @Column(name = "position", columnDefinition = "BINARY_DOUBLE")
    private double position;

    @Column(name = "fnc_classification_id")
    private Long functionClassification;     // tre.tre_tpe - nml_fnc

    @Column(name = "phone_no_1")
    private String phoneNo1;

    @Column(name = "phone_no_2")
    private String phoneNo2;

    @Column(name = "phone_no_3")
    private String phoneNo3;

    @Column(name = "validate_from")
    private Date validateFrom;

    @Column(name = "validate_to")
    private Date validateTo;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public double getPosition() {
        return position;
    }

    public void setPosition(double position) {
        this.position = position;
    }

    public Long getFunctionClassification() {
        return functionClassification;
    }

    public void setFunctionClassification(Long functionClassification) {
        this.functionClassification = functionClassification;
    }

    public String getPhoneNo1() {
        return phoneNo1;
    }

    public void setPhoneNo1(String phoneNo1) {
        this.phoneNo1 = phoneNo1;
    }

    public String getPhoneNo2() {
        return phoneNo2;
    }

    public void setPhoneNo2(String phoneNo2) {
        this.phoneNo2 = phoneNo2;
    }

    public String getPhoneNo3() {
        return phoneNo3;
    }

    public void setPhoneNo3(String phoneNo3) {
        this.phoneNo3 = phoneNo3;
    }

    public Date getValidateFrom() {
        return validateFrom;
    }

    public void setValidateFrom(Date validateFrom) {
        this.validateFrom = validateFrom;
    }

    public Date getValidateTo() {
        return validateTo;
    }

    public void setValidateTo(Date validateTo) {
        this.validateTo = validateTo;
    }
}
